package com.example.thread.base.demo1;

import lombok.extern.slf4j.Slf4j;

/**
   	* @Description:     继承：extends Thread类  继承的子类需要重写run方法
   	* @Author:         LiYuhang
   	* @CreateDate:     2020/8/5 17:25
   	* @Version:        1.0
   	*/
@Slf4j(topic = "c_demo1_1")
public class demo1_1 {
         public static void main(String[] args) {
            ExtendsThread extendsThread = new ExtendsThread();
            extendsThread.start();
            log.info("  extendsThread.start();");
        }
}
@Slf4j(topic = "c_ExtendsThread")
class ExtendsThread extends Thread{
    @Override
    public void run() {
      log.info("hello thread");
    }
}
